using ReflectionStudio.Core.Events;
using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Input;
using WPFExcelReport.Helpers;
using INTEX.DataBase;
using ReflectionStudio.Core.Events;
using System;
using System.Data;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    public partial class GM01
    {

        public GM01()
        {

            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            DataContext = new VGM01();
            InitializeComponent();
        }

    }
    public partial class VGM01: ViewModelBase
    {
        public VGM01() : base()
        {

            switch (app.company)
            {
                default:
                case "YGR":
                case "YCC":
                case "TST":
                    SetEnv = new YGRDB();
                    SetData = new YGRDB();
                    SetProd = new YGRDB();
                    break;
                case "JLT":
                    SetEnv = new JLTDB();
                    SetData = new JLTDB();
                    SetProd = new JLTDB();
                    break;
            }
            TableName = "VKPOS";
        }
        #region=Property========
        //-----Property---
         public string BENID { get { if (dwMaster == null) return ""; return dwMaster["BENID"].ToString(); } set { if (dwMaster == null) return; dwMaster["BENID"] = value; OnPropertyChanged("BENID", value); } }
 public string PASSW { get { if (dwMaster == null) return ""; return dwMaster["PASSW"].ToString(); } set { if (dwMaster == null) return; dwMaster["PASSW"] = value; OnPropertyChanged("PASSW", value); } }
 public string MANDANT { get { if (dwMaster == null) return ""; return dwMaster["MANDANT"].ToString(); } set { if (dwMaster == null) return; dwMaster["MANDANT"] = value; OnPropertyChanged("MANDANT", value); } }
 public string PASSWN { get { if (dwMaster == null) return ""; return dwMaster["PASSWN"].ToString(); } set { if (dwMaster == null) return; dwMaster["PASSWN"] = value; OnPropertyChanged("PASSWN", value); } }
 public string POS { get { if (dwMaster == null) return ""; return dwMaster["POS"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS"] = value; OnPropertyChanged("POS", value); } }
 public string POS_1 { get { if (dwMaster == null) return ""; return dwMaster["POS_1"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_1"] = value; OnPropertyChanged("POS_1", value); } }
 public string POS_2 { get { if (dwMaster == null) return ""; return dwMaster["POS_2"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_2"] = value; OnPropertyChanged("POS_2", value); } }
 public string POS_3 { get { if (dwMaster == null) return ""; return dwMaster["POS_3"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_3"] = value; OnPropertyChanged("POS_3", value); } }
 public string POS_4 { get { if (dwMaster == null) return ""; return dwMaster["POS_4"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_4"] = value; OnPropertyChanged("POS_4", value); } }
 public string POS_5 { get { if (dwMaster == null) return ""; return dwMaster["POS_5"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_5"] = value; OnPropertyChanged("POS_5", value); } }
 public string POS_6 { get { if (dwMaster == null) return ""; return dwMaster["POS_6"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_6"] = value; OnPropertyChanged("POS_6", value); } }
 public string POS_7 { get { if (dwMaster == null) return ""; return dwMaster["POS_7"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_7"] = value; OnPropertyChanged("POS_7", value); } }
 public string POS_8 { get { if (dwMaster == null) return ""; return dwMaster["POS_8"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_8"] = value; OnPropertyChanged("POS_8", value); } }
 public string POS_9 { get { if (dwMaster == null) return ""; return dwMaster["POS_9"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_9"] = value; OnPropertyChanged("POS_9", value); } }
 public string POS_10 { get { if (dwMaster == null) return ""; return dwMaster["POS_10"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_10"] = value; OnPropertyChanged("POS_10", value); } }
 public string POS_11 { get { if (dwMaster == null) return ""; return dwMaster["POS_11"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_11"] = value; OnPropertyChanged("POS_11", value); } }
 public string POS_12 { get { if (dwMaster == null) return ""; return dwMaster["POS_12"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_12"] = value; OnPropertyChanged("POS_12", value); } }
 public string POS_13 { get { if (dwMaster == null) return ""; return dwMaster["POS_13"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_13"] = value; OnPropertyChanged("POS_13", value); } }
 public string POS_14 { get { if (dwMaster == null) return ""; return dwMaster["POS_14"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_14"] = value; OnPropertyChanged("POS_14", value); } }
 public string POS_15 { get { if (dwMaster == null) return ""; return dwMaster["POS_15"].ToString(); } set { if (dwMaster == null) return; dwMaster["POS_15"] = value; OnPropertyChanged("POS_15", value); } }

        #endregion
    }
}
